package com.yxym.extend_.improve;

public class Base extends TopBase{
    public int n1= 100;
    protected int n2 = 200;
    int n3 = 300;
    private  int n4 = 400;
    public Base(){//父类无参构造器
        System.out.println("父类无参构造器Base()被调用");
    }
    public Base(int age){
        System.out.println("父类构造器Base(int age)被调用");
    }
    public Base(String name,int age){
        System.out.println("父类构造器Base(String name,int age)被调用");
    }
    public Base(String name){
        System.out.println("父类构造器Base(String name)被调用");
    }
    public void test100(){
        System.out.println("test100");
    }
    protected void test200(){
        System.out.println("test200");
    }
    void test300(){
        System.out.println("test300");
    }
    private void test400(){
        System.out.println("test400");
    }
    public void getTest400(){
        test400();
    }
    public int getN4(){
        return n4;
    }
}